package edu.chl.grupp11.aegas.model.imp;

import java.util.ResourceBundle;

import edu.chl.grupp11.aegas.model.AbstractConfig;

public class Config extends AbstractConfig {
	public static Config getInstance() {
		return instance;
	}

	private boolean searchSubFolders = false;
	private ResourceBundle bundle = ResourceBundle
			.getBundle("edu/chl/grupp11/aegas/recources/bundles/" + "English");

	private static Config instance = new Config();

	private Config() {
		// Singleton
	}

	@Override
	public ResourceBundle getResourceBundle() {
		return this.bundle;
	}

	@Override
	public boolean isSearchSubFolders() {
		return searchSubFolders;
	}

	@Override
	public void setResourceBundle(ResourceBundle bundle) {
		this.bundle = bundle;
		setChanged();
		notifyObservers();

	}

	@Override
	public void setSearchSubFolders(boolean searchSubFolders) {
		this.searchSubFolders = searchSubFolders;

	}
}
